dy-lib=libmymath.so

$(dy-lib):sub.o
	gcc -shared -o $@ $^
sub.o:sub.c
	gcc -fPIC -c $^

.PHONY:clean
clean:
	rm -rf *.o *.so  mylib

.PHONY:output
output:
	mkdir -p mylib/include
	mkdir -p mylib/lib
	cp *.h mylib/include
	cp *.so mylib/lib
